package com.code.softeem.zuoye.demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/20 16:45
 * @description
 */
public class TankB extends Tank{
    public TankB() {
    }

    public TankB(String atk, String def, String hp) {
        super(atk, def, hp);
    }

    @Override
    public void gongji() {
        System.out.print("射击速度适中");
    }

    @Override
    public void yidong() {
        System.out.print("移动速度适中");
    }

    @Override
    public void die() {
        System.out.print("销毁时效果炫酷");
    }

    @Override
    public void getInfo() {
        System.out.print("B型坦克：");
        gongji();
        System.out.print(",");
        yidong();
        System.out.print(",");
        System.out.print(getAtk()+","+getHp()+","+getDef()+",");
        die();
        System.out.println();
    }
}
